package com.saris.primego.dao;

import com.saris.primego.pojo.entity.DishFlavor;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DishFlavorRepository extends JpaRepository<DishFlavor, Long> {
    void deleteDishFlavorsByDishId(Long dishId);

    void deleteAllByDishId(Long dishId);

    List<DishFlavor> getAllByDishId(Long dishId);
}
